package com.jianbing.north.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jianbing.common.annotation.Excel;
import com.jianbing.common.core.domain.BaseEntity;

/**
 * 用户挑战进度表对象 north_user_info
 * 
 * @author ruoyi
 * @date 2024-06-20
 */
public class NorthUserInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户ID */
    private Long userId;

    /** 用户现在处于第几天 */
    @Excel(name = "用户现在处于第几天")
    private Long day;

    /** 用于记录用户在part2部分的进度 */
    @Excel(name = "用于记录用户在part2部分的进度")
    private Long part2;

    @Excel(name = "p1得分")
    private Long p1Fraction;

    @Excel(name = "p2得分")
    private Long p2Fraction;

    /** 记录插入时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录插入时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date insertTime;

    private Long allFraction;
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setDay(Long day) 
    {
        this.day = day;
    }

    public Long getDay() 
    {
        return day;
    }
    public void setPart2(Long part2) 
    {
        this.part2 = part2;
    }

    public Long getPart2() 
    {
        return part2;
    }
    public void setInsertTime(Date insertTime) 
    {
        this.insertTime = insertTime;
    }

    public Date getInsertTime() 
    {
        return insertTime;
    }

    public Long getP1Fraction() {
        return p1Fraction;
    }

    public void setP1Fraction(Long p1Fraction) {
        this.p1Fraction = p1Fraction;
    }

    public Long getP2Fraction() {
        return p2Fraction;
    }

    public void setP2Fraction(Long p2Fraction) {
        this.p2Fraction = p2Fraction;
    }

    public Long getAllFraction() {
        return allFraction;
    }

    public void setAllFraction(Long allFraction) {
        this.allFraction = allFraction;
    }

    @Override
    public String toString() {
        return "NorthUserInfo{" +
                "userId=" + userId +
                ", day=" + day +
                ", part2=" + part2 +
                ", p1Fraction=" + p1Fraction +
                ", p2Fraction=" + p2Fraction +
                ", insertTime=" + insertTime +
                ", allFraction=" + allFraction +
                '}';
    }
}
